﻿using System;
using System.Collections.Generic;
using System.Text;
using SharpDiary.Core.Data;

namespace SharpDiary.Core.ORMapping
{
    /// <summary>
    /// 笔记信息。
    /// </summary>
    [TableInfoAttribute("NoteInfo")]
    public class NoteInfo: DbMappingObjectBase
    {
        #region Fields & Properties

        private Int64 _id = -1;

        /// <summary>
        /// 编号。
        /// </summary>
        [FieldMapping(true, System.Data.DbType.Int64, true, true)]
        public Int64 Id
        {
            get { return _id; }
            set { _id = value; }
        }

        private string _noteTypeIds = string.Empty;

        /// <summary>
        /// 类别编号。(多个编号以,分隔)
        /// </summary>
        [FieldMapping(false, System.Data.DbType.String, false, false)]
        public string NoteTypeIds
        {
            get { return _noteTypeIds; }
            set { _noteTypeIds = value; }
        }

        private string _title = string.Empty;

        /// <summary>
        /// 标题。
        /// </summary>
        [FieldMapping(false, System.Data.DbType.String, false, false)]
        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        private string _tags = string.Empty;

        /// <summary>
        /// 标签。(多个标签以,分隔)
        /// </summary>
        [FieldMapping(false, System.Data.DbType.String, false, false)]
        public string Tags
        {
            get { return _tags; }
            set { _tags = value; }
        }


        private string _content = string.Empty;

        /// <summary>
        /// 内容。
        /// </summary>
        [FieldMapping(false, System.Data.DbType.String, false, false)]
        public string Content
        {
            get { return _content; }
            set { _content = value; }
        }

        private DateTime _createdDatetime = DateTime.Now;

        /// <summary>
        /// 创建日期。
        /// </summary>
        [FieldMapping(false, System.Data.DbType.DateTime, false, false)]
        public DateTime CreatedDatetime
        {
            get { return _createdDatetime; }
            set { _createdDatetime = value; }
        }

        #endregion

        #region Constructors

        public NoteInfo()
        {

        }

        #endregion

        #region Methods



        #endregion
    }
}
